//
//  ONRealTimeTableViewCell.h
//  Volatix
//
//  Created by Anh Tran on 6/2/14.
//  Copyright (c) 2014 Familly. All rights reserved.
//

#import "SWTableViewCell.h"

// model
#import "ONISOObjects.h"
@protocol ONRealTimeTableViewCellDelegate <NSObject>
@optional
-(void)clickNext:(ONISOObjects*)ISOObject;
@end

@interface ONRealTimeTableViewCell : UITableViewCell
@property (weak, nonatomic) ONISOObjects *backupISOObject;
@property (weak, nonatomic) ONObjectRealTime *backupResult;
@property (weak, nonatomic) ONObjectDayAhead *backupResult_DayAhead;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *highLabel;
@property (weak, nonatomic) IBOutlet UILabel *lowLabel;
@property (weak, nonatomic) IBOutlet UILabel *currentLabel;
@property (weak, nonatomic) IBOutlet UIImageView *backgroundImageView;
@property (weak, nonatomic) IBOutlet UILabel *detailLabel;
@property (weak, nonatomic) IBOutlet UIView *lineView;
@property (weak, nonatomic) IBOutlet UIButton *buttonClick;
@property (weak, nonatomic) id<ONRealTimeTableViewCellDelegate> delegate;

@property (nonatomic,assign) int currentNumber;
@property (nonatomic,assign) int currentNumber_DayAhead;

- (void)loadCellData_RealTime:(ONISOObjects*)ISOObject withDataUpdate:(NSMutableArray *)dataUpdate andCurrentChoiced :(NSInteger)choiced andNumberColumn:(int)numberColumn andShowArrow:(BOOL)value;
-(void)loadCellData_DayAhead:(ONISOObjects *)ISOObject withDataUpdate:(NSMutableArray *)dataUpdate andCurrentChoiced:(NSInteger)choiced andNumberColumn:(int)numberColumn andShowArrow:(BOOL)value;
-(void)loadCellData_DayAheadDetail:(ONISOObjects *)ISOObject WithDataUpdate:(ONObjectDayAhead  *)dataUpdate andNumberColumn:(int)numberColumn andShowArrow:(BOOL)value;
@end
